package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.CartBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 购物车Mapper接口
 */
@Mapper
public interface ICartMapper extends BaseMapper<CartBean> {

    public List<CartBean> findByUser(Integer userId);

    public Integer calculateTotal(Integer userId);
}
